package com.yungu.swift.assets.driver.model.param;

import com.yungu.swift.base.model.admin.AdminPageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Optional;

/**
 * @author : cuixiuyin
 * @date : 2019/7/2
 */
@ApiModel
public class AdminDriverMonitorParam extends AdminPageParam {

    @ApiModelProperty(value = "业务类型", required = false)
    private String businessType;

    @ApiModelProperty(value = "代理 uuid", required = false)
    private String agentUuid;

    @ApiModelProperty(value = "公司 uuid", required = false)
    private String companyUuid;

    @ApiModelProperty(value = "城市 uuid", required = false)
    private String cityUuid;

    @ApiModelProperty(value = "车牌号或手机号或订单号")
    private String mix;

    @ApiModelProperty(value = "1空车 2接客中 3载客中 4收车 5离线", example = "0")
    private Integer status;

    public String getBusinessType() {
        return businessType;
    }

    public void setBusinessType(String businessType) {
        this.businessType = businessType;
    }

    public String getAgentUuid() {
        return Optional.ofNullable(agentUuid).orElse(super.getUserAgentUuid());
    }

    public void setAgentUuid(String agentUuid) {
        this.agentUuid = agentUuid;
    }

    public String getCompanyUuid() {
        return Optional.ofNullable(companyUuid).orElse(super.getUserCompanyUuid());
    }

    public void setCompanyUuid(String companyUuid) {
        this.companyUuid = companyUuid;
    }

    public String getCityUuid() {
        return cityUuid;
    }

    public void setCityUuid(String cityUuid) {
        this.cityUuid = cityUuid;
    }

    public String getMix() {
        return mix;
    }

    public void setMix(String mix) {
        this.mix = mix;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
